How to // Comment
Install h5ai // Installer h5ai

Ubuntu

[Ubuntu] Install h5ai



0. Ensure your system is up to date
  • apt-get update && apt-get upgrade -y
1. Installation

/!\ You need PHP and zip installed!

Get lastest release of H5AI
Extract all at your DOC_ROOT/ (c.f.: www/html/)
2. Configure
  • chmod 777 /var/www/html/_h5ai/public/cache
  • chmod 777 /var/www/html/_h5ai/private/cache
Update "/etc/apache2/apache2.conf" file (change by yours)
Add or Edit (not remove !) to have following lines:
  • DirectoryIndex index.html index.php /_h5ai/public/index.php
Update "/var/www/html/_h5ai/private/conf/options.json" file (change by yours)

/!\ Change the passhash by yours with the MD5hashing site !

-> Edit as you want and to not create lag (depends on your server).

3. Add apache connection (c.f.: /home)
Update "/etc/apache2/sites-available/000-default.conf" file (change by yours)
Add or Edit (not remove !) to have following lines:
  • <VirtualHost *:80>
  • ErrorLog /home/Files/logs/apache_errors.log
  • CustomLog /home/Files/logs/apache_custom.log combined
  • RewriteEngine on
  • # h5ai
  • ProxyPass /h5ai http://%{HTTP_HOST}:8080/
  • ProxyPassReverse /h5ai http://%{HTTP_HOST}:8080/
  • RewriteRule /h5ai[/]?$ http://%{HTTP_HOST}:8080/ [R=permanent]
  • </VirtualHost>
  • <VirtualHost *:8080>
  • DocumentRoot /home
  • ErrorLog /home/Files/logs/apache_errors_alt.log
  • CustomLog /home/Files/logs/apache_custom_alt.log combined
  • <Directory "/home">
  • DirectoryIndex index.html index.php /_h5ai/public/index.php
  • allow from all
  • Options None
  • Require all granted
  • </Directory>
  • </VirtualHost>
Update "/etc/apache2/ports.conf" file (change by yours)
Add or Edit (not remove !) to have following lines:
  • Listen 80
  • Listen 8080
4. Restricted Area (c.f.: /home)
Update "/home/.htacess" file (change by yours)
Add or Edit (not remove !) to have following lines:
  • # Protection (for developing only)
  • AuthType Basic
  • AuthName "Restricted Area"
  • AuthUserFile "/home/.htpasswd"
  • Require valid-user
Update "/home/.htpasswd" file (change by yours)
You can use the Htaccesstools site to fill it


How to

[How to] Installer h5ai



0. Assurez-vous que votre système est à jour
  • apt-get update && apt-get upgrade -y
1. Installation

/!\ Vous avez besoin de PHP et zip installé !

Obtenez la dernière version de H5AI
Tout extraire à votre DOC_ROOT/ (c.f.: www/html/)
2. Configurer
  • chmod 777 /var/www/html/_h5ai/public/cache
  • chmod 777 /var/www/html/_h5ai/private/cache
Mettre à jour le fichier "/etc/apache2/apache2.conf" (changer par le vôtre)
Add or Edit (not remove !) to have following lines :
  • DirectoryIndex index.html index.php /_h5ai/public/index.php
Mettre à jour le fichier "/var/www/html/_h5ai/private/conf/options.json" (changer par le vôtre)

/!\ Changer le passhash par le vôtre avec le site MD5hashing !

-> Modifiez à votre guise et ne créez pas de décalage (dépend de votre serveur).

3. Ajouter une connexion apache (c.f.: /home)
Mettre à jour le fichier "/etc/apache2/sites-available/000-default.conf" (changer par le vôtre)
Ajouter ou modifier (ne pas supprimer !) pour avoir les lignes suivantes :
  • <VirtualHost *:80>
  • ErrorLog /home/Files/logs/apache_errors.log
  • CustomLog /home/Files/logs/apache_custom.log combined
  • RewriteEngine on
  • # h5ai
  • ProxyPass /h5ai http://%{HTTP_HOST}:8080/
  • ProxyPassReverse /h5ai http://%{HTTP_HOST}:8080/
  • RewriteRule /h5ai[/]?$ http://%{HTTP_HOST}:8080/ [R=permanent]
  • </VirtualHost>
  • <VirtualHost *:8080>
  • DocumentRoot /home
  • ErrorLog /home/Files/logs/apache_errors_alt.log
  • CustomLog /home/Files/logs/apache_custom_alt.log combined
  • <Directory "/home">
  • DirectoryIndex index.html index.php /_h5ai/public/index.php
  • allow from all
  • Options None
  • Require all granted
  • </Directory>
  • </VirtualHost>
Mettre à jour le fichier "/etc/apache2/ports.conf" (changer par le vôtre)
Ajouter ou modifier (ne pas supprimer !) pour avoir les lignes suivantes :
  • Listen 80
  • Listen 8080
4. Zone réglementée (c.f.: /home)
Mettre à jour le fichier "/home/.htacess" (changer par le vôtre)
Ajouter ou modifier (ne pas supprimer !) pour avoir les lignes suivantes :
  • # Protection (for developing only)
  • AuthType Basic
  • AuthName "Restricted Area"
  • AuthUserFile "/home/.htpasswd"
  • Require valid-user
Mettre à jour le fichier "/home/.htpasswd" (changer par le vôtre)
Vous pouvez utiliser les site Htaccesstools pour le remplir